package net.java.amateras.uml.classdiagram.editpart;

import concrete.AmaterasMediator;
import net.java.amateras.uml.classdiagram.figure.ClassFigureFactory;
import net.java.amateras.uml.classdiagram.figure.UMLClassFigure;
import net.java.amateras.uml.classdiagram.model.InterfaceModel;

public class InterfaceEditPart extends CommonEntityEditPart {

	public UMLClassFigure getClassFigure() {
		
		InterfaceModel model = (InterfaceModel) getModel();
		
		AmaterasMediator.getInstance().addInterface(model.getName());
		
		return ClassFigureFactory.getInterfaceFigure();
	}
}
